$(".ser-introduce-tip").click(function(){
    $(".ser-introduce-tip").placeholder.hide();
    
});

$(document).ready(function () {
    dropdownOpen();//调用
});
/**
 * 鼠标划过就展开子菜单，免得需要点击才能展开
 */
function dropdownOpen() {

    var $dropdownLi = $('li.dropdown');

    $dropdownLi.mouseover(function () {
        $(this).addClass('open');
    }).mouseout(function () {
        $(this).removeClass('open');
    });
}

layui.use('laydate', function(){
    var laydate = layui.laydate;

    //年月范围
    laydate.render({
        elem: '#test8'
        ,type: 'month'
        ,range: true
    });
    //日期范围
    laydate.render({
        elem: '#test6'
        ,range: true
    });

    //时间范围
    laydate.render({
        elem: '#test9'
        ,type: 'time'
        ,range: true
        ,format: 'H时'
    });
});

$(document).ready(function () {
    $('.save').click(function () {
        swal({
            title: "保存到草稿成功",
            text: "返回继续编辑发布服务",
            type: "success"
        });
    });
    $('.commit').click(function () {
        // swal({
        //     title: "您成功的发布了一个服务",
        //     type: "success",
        //     button: "",
        // });
        swal({
            title: "您成功的发布了一个服务",
            type: "success",
            confirmButtonText: "查看服务",

        }, function () {
            window.location.href='serviceDetail.jsp'
        });

    });
});
